package org.dromara.system.domain.bo;

import org.dromara.system.domain.SysProfitSettlement;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.hibernate.validator.constraints.Length;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;
import java.io.Serial;
import java.io.Serializable;

/**
 * 分佣结算业务对象 sys_profit_settlement
 *
 * @author yixiacoco
 * @date 2025-09-04
 */
@Data
@AutoMapper(target = SysProfitSettlement.class, reverseConvertGenerate = false)
public class SysProfitSettlementBo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 结算id
     */
    @NotBlank(message = "结算id不能为空", groups = {EditGroup.class})
    @Length(max = 36, message = "结算id不能大于{max}个字符", groups = {EditGroup.class})
    private String settlementId;
    /**
     * 结算周期开始日期
     */
    @NotNull(message = "结算周期开始日期不能为空", groups = {AddGroup.class, EditGroup.class})
    private Date startDate;
    /**
     * 结算周期结束日期
     */
    @NotNull(message = "结算周期结束日期不能为空", groups = {AddGroup.class, EditGroup.class})
    private Date endDate;
    /**
     * 结算总金额
     */
    @NotNull(message = "结算总金额不能为空", groups = {AddGroup.class, EditGroup.class})
    private BigDecimal totalAmount;
    /**
     * 状态（0-未结算，1-已结算）
     */
    private Integer status;
}
